package cn.arnold.java8newfuture;

import lombok.Data;

import java.util.Optional;

/**
 * @Author Arnold
 * @Desc TODO
 **/
@Data
public class User {

    private String name;

    private String adress;

    private String postion;

    private Country country;


    public User(String name, String adress) {
        this.name = name;
        this.adress = adress;
    }

    public User() {
    }

    public Optional<String> getPostion(){
        return Optional.ofNullable(postion);
    }


}
